export default {
    state:{
        data: [
            {
                name: '麦肯锡问题分析与解决技巧',
                price:34.60,
                num:1,
            },
            {
                name: '极简思维：颠覆传统思维模式的极简法则',
                price:31.50,
                num:1,
            },
            {
                name: '沃顿商学院最受欢迎的思维课+谈判课+哈佛商学院最受欢迎的营销课+领导',
                price:184.50,
                num:1,
            }
        ]
    },
    reSetNum(){
        this.state.data.forEach(row => {
            row.num = 0;
        });
    }
}